package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("message")
public class Message extends Model<Message> {

    private static final long serialVersionUID = 1L;

    /**
     * 消息id
     */
    @TableId(value = "messageID", type = IdType.AUTO)
    private Integer messageID;
    /**
     * 消息接收者
     */
    private Integer receiverID;
    /**
     * 消息类型
     */
    private Integer messageType;



    /**
     * 消息内容
     */
    private String content;

    /**
     * 消息发送者
     */
    private Integer senderID;
    /**
     * 是否已读
     */
    private Integer isRead;
    /**
     * 新建时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String modifyTime;
    /**
     * 操作员id
     */
    private Integer operatorID;


    public Integer getMessageID() {
        return messageID;
    }

    public void setMessageID(Integer messageID) {
        this.messageID = messageID;
    }

    public Integer getReceiverID() {
        return receiverID;
    }

    public void setReceiverID(Integer receiverID) {
        this.receiverID = receiverID;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getSenderID() {
        return senderID;
    }

    public void setSenderID(Integer senderID) {
        this.senderID = senderID;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getOperatorID() {
        return operatorID;
    }

    public void setOperatorID(Integer operatorID) {
        this.operatorID = operatorID;
    }

    @Override
    protected Serializable pkVal() {
        return this.messageID;
    }

    @Override
    public String toString() {
        return "Message{" +
        "messageID=" + messageID +
        ", receiverID=" + receiverID +
        ", messageType=" + messageType +
                ", content=" + content +
        ", senderID=" + senderID +
        ", isRead=" + isRead +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        ", operatorID=" + operatorID +
        "}";
    }
}
